package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxxx.server.pojo.Sdaka;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 学生打卡表 Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2022-06-01
 */
public interface SdakaMapper extends BaseMapper<Sdaka> {

    List<Sdaka> getSdakaBySDid(@Param("id") Integer id);

    IPage<Sdaka> getSdakaByPage(Page<Sdaka> page, @Param("sdaka") Sdaka sdaka,
                                @Param("beginDateScope") String[] beginDateScope);

    List<Sdaka> getSdaka(@Param("id") Integer id);

    List<Map<Object,Object>> getAllDaka(@Param("sdate") String sdate, @Param("edate") String edate);

    List<Map<Object, Object>> getalldakaByCl(@Param("sdate")String sdate, @Param("edate")String edate, @Param("collegeid")int collegeid);
}
